import java.awt.image.BufferedImage;

public class Hero extends FlyingObject{
    private int score;

    public Hero(){
       image = ShootGame.hero0;
       width = image.getWidth(null);
       height = image.getHeight(null);
       x = 150;
       y = 450;
       life = 3;

    }


    private int count = 0;
    private BufferedImage[] heroImage
            = {ShootGame.hero0,ShootGame.hero1};

    public void move(){
        count ++;
        if(count % 2 == 0){
            image = ShootGame.hero0;
        }else{
            image = ShootGame.hero1;
        }
//        image = heroImage[count % 2];
    }



    public void fire(){
    }

    public void strengthen(){
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }


}
